var express = require('express');
var router = express.Router();

/* GET home page. */

router.get("/lunbo",function(req,res){
    var imgs = [
        {img:"http://localhost:3000/images/lunbo/1.jpg"},
        {img:"http://localhost:3000/images/lunbo/2.jpg"},
        {img:"http://localhost:3000/images/lunbo/3.jpg"},
        {img:"http://localhost:3000/images/lunbo/4.jpg"},
        {img:"http://localhost:3000/images/lunbo/5.jpg"},
        {img:"http://localhost:3000/images/lunbo/6.jpg"},
    ]
    res.json({err:0,msg:imgs});
})

router.get("/menu",function(req,res){
    var imgs = [
        {img:"http://localhost:3000/images/menu/1.jpg",title:"电脑抢购"},
        {img:"http://localhost:3000/images/menu/2.jpg",title:"9.9包邮"},
        {img:"http://localhost:3000/images/menu/3.jpg",title:"同城好物"},
        {img:"http://localhost:3000/images/menu/4.jpg",title:"新人特惠"},
        {img:"http://localhost:3000/images/menu/5.jpg",title:"天天拼团"},
    ]
    res.json({err:0,msg:imgs});
})

router.get("/fastbuy",function(req,res){
    var list = [
        {img:"http://localhost:3000/images/list/1.jpg",price:"23"},
        {img:"http://localhost:3000/images/list/2.jpg",price:"35"},
        {img:"http://localhost:3000/images/list/3.jpg",price:"46"},
        {img:"http://localhost:3000/images/list/4.jpg",price:"18"},
        {img:"http://localhost:3000/images/list/5.jpg",price:"12"},
        {img:"http://localhost:3000/images/list/6.jpg",price:"19"},
        {img:"http://localhost:3000/images/list/7.jpg",price:"56"},
        {img:"http://localhost:3000/images/list/8.jpg",price:"64"},
        {img:"http://localhost:3000/images/list/9.jpg",price:"53"},
        {img:"http://localhost:3000/images/list/10.jpg",price:"71"},
        {img:"http://localhost:3000/images/list/11.jpg",price:"52"},
        {img:"http://localhost:3000/images/list/12.jpg",price:"30"},
    ]
    res.json({err:0,msg:list});
})


module.exports = router;
